// ActionScript file
import caurina.transitions.*;

import mx.core.Container;

	internal function useTween( nomCanvas:Container, mesure:Number, horizontal:Boolean = true):void{
		if(horizontal){
			Tweener.addTween
			(
				nomCanvas,
				{
					height : mesure,
					transition : "easeOutSine",
					time : 1,
					onComplete : function():void
					{
						Tweener.addTween
						(
							LucyID.lucyIdapplication,
							{
								verticalScrollPosition : 2000,
								transition : "easeOutSine",
								time : 1.5
							}
						);											
					}						
				}
			);
		}
		else
		{
			Tweener.addTween
			(
				nomCanvas,
				{
					width : mesure,
					transition : "easeOutSine",
					time : 1					
				}
			);
		}
		
	}